package com.kitwee.serialport.decoder.mitsubishi;


/**
 * 三菱Q系列解码器
 *
 * @author szhyde
 */
public class QOutputFormIntDecoder extends QInstructionDecoder {

    @Override
    public synchronized Object decode(byte[] source) {
        Object returnObject = super.decode(source);
		
		/*Object object = deviceStatus.getExpand().get(instruction.getDecoder_object());
		if(object!=null){
			Integer returnObjectTemp = Integer.valueOf(String.valueOf(returnObject));
			Integer objectTemp = Integer.valueOf(String.valueOf(object));
			if(returnObjectTemp>=objectTemp){
				Integer outputTemp = returnObjectTemp - objectTemp;
				deviceStatus.getExpand().put("standard_output", outputTemp);
			}else{
				deviceStatus.getExpand().put("standard_output", 0);
			}
		}else{
			deviceStatus.getExpand().put("standard_output", 0);
		}*/
        return returnObject;
    }

}
